package com.zhangdi.dwperms.controller.rest;

import com.zhangdi.dwperms.request.LoginRequest;
import com.zhangdi.dwcommons.response.Response;
import com.zhangdi.dwperms.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by zhangdi on 2020/01/22 15:56:33.
 */

//@RestController
//@RequestMapping("/rest")
//public class PublicController {
//    @Autowired
//    AccountService accountService;
//
//    @PostMapping("/login")
//    public Response login(@RequestBody LoginRequest request, ServletResponse response) {
//        return accountService.login(request, (HttpServletResponse)response);
//    }
//}
